/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.allscore.procedure.test.controller;

import com.allscore.procedure.test.repository.WorkerProcRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class WorkerController {

    @Autowired
    private WorkerProcRepository workerProcRepository;

    @GetMapping("/getNum")
    public String getNum() {
        int cnt = workerProcRepository.explicitlyProc(18);
        return "ok, " + cnt;
    }
}
